package cn.fzm.demo01;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author Dremeue
 * @create 2019-09-27 10:17
 **/
public class TestAop {
    @Test
    public void testAop() {
        ApplicationContext context = new ClassPathXmlApplicationContext("bean1.xml");
        Book book = (Book) context.getBean("book");
        book.add();
    }
}
